﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Manage_addNew : ManagePageBase {
    protected void Page_Load(object sender, EventArgs e) {
        int r = 0;
        string cname = Server.HtmlEncode(Request.Form["cname"].Trim());
        string cdesc = Server.HtmlEncode(Request.Form["cdesc"].Trim());
        bool result = new Exam.Core.DAL.Course().AddCourse(cname, cdesc,isTheMe.CourseId, isTheMe.MasterID.Trim());
        if (result) {
            r=1;
        }
        else {
            r=0;
        }
        Response.Write(r.ToString());
        Response.End();
    }
}
